
find_package(GLUT)
find_package(OpenGL)
find_package(Boost)
find_package(CGAL)
find_package(GMP)

# Allow the developer to select if Dynamic or Static libraries are built
OPTION (BUILD_SHARED_LIBS "Build Shared Libraries" ON)
# Set the LIB_TYPE variable to STATIC
SET (LIB_TYPE STATIC)
IF (BUILD_SHARED_LIBS)
# User wants to build Dynamic Libraries, so change the LIB_TYPE variable to CMake keyword 'SHARED'
    SET (LIB_TYPE SHARED)
ENDIF (BUILD_SHARED_LIBS)

include_directories( ${CMAKE_CURRENT_BINARY_DIR} )

file(GLOB sources_localdir *.cpp *.h)

set(mathematic ${sources_localdir} )

add_library(mathematica ${LIB_TYPE} ${sources_localdir} )

install (TARGETS mathematica DESTINATION bin)

